import Login from "../pages/login"
import NotFound from "../pages/error-page"
import LayOut from "../pages/layout/index"
import AuthRouter from "../components/AuthRouter"
import Index from "./modules/index"
import exam from "./modules/exam"
import goods from "./modules/goods"
import supplier from "./modules/supplier"
import merchant from "./modules/merchant"
import order from "./modules/order"
import promote from "./modules/promote"
import admin from "./modules/admin"
const routes=[
    {
        path:"/",
        element:<AuthRouter><LayOut/></AuthRouter>,
        children:[
           Index,
           exam,
           goods,
           supplier,
           merchant,
           order,
           promote,
           admin
        ]
    },
    {
        path:"/login",
        element:<Login></Login>
    },
    {
        path:"*",
        element:<NotFound></NotFound>
    },
]

export default routes